import sys
from PySide6 import QtCore, QtWidgets
import ui_dlgtp
from PySide6.QtCore import Slot
from PySide6 import QtSql
import myglobal
class dlgtp(QtWidgets.QDialog):
    ui=ui_dlgtp.Ui_DlgTp();
    def __init__(self, parent=None):
        QtWidgets.QDialog.__init__(self, parent)
        self.ui.setupUi(self)
    def about(self):
        pass
    def appendCR(self):
        pass
    def appendLF(self):
        pass
    def transmitMsg(self):
        pass
    def receiveMsg(self):
        pass
    def read(self):
        print(myglobal.tp1.read())
        pass
        
if __name__ == "__main__":
    from PySide6 import QtCore, QtWidgets
    import sys
    a = QtWidgets.QApplication(sys.argv)
    a.lastWindowClosed.connect(a.quit)
    w =dlgtp()
    w.show()
    sys.exit(a.exec_())